import request from '@/utils/request'

// 获取勘察阶段
export function getSurveyApi(projectId) {
  return request({
    url: '/survey/'+projectId,
    method: 'get'
  })
}

// 创建勘察阶段
export function createSurveyApi(projectId) {
    return request({
      url: '/survey/'+projectId,
      method: 'post'
    })
  }

// 修改勘察阶段
export function updateSurveyApi(stageSurvey) {
  return request({
    url: '/survey',
    method: 'put',
    data: stageSurvey
  })
}

// 删除勘察阶段
export function deleteSurveyApi(projectId) {
    return request({
      url: '/survey/'+projectId,
      method: 'delete'
    })
}


